package mall

import (
	"github.com/gin-gonic/gin"
	v1 "main.go/api/v1"
	"main.go/middleware"
)

type GoodsInfoRouter struct{}

func (r *GoodsInfoRouter) InitGoodsInfoRouter(Router *gin.RouterGroup) {
	privateAdminGroup := Router.Group("admin/goods_info").Use(middleware.Auth("admin"))
	// privateGroup := Router.Group("user").Use(middleware.Auth("app"))

	api := v1.ApiGroupApp.MallApiGroup.GoodsInfoApi
	{
		privateAdminGroup.POST("create", api.Create) // 增
		privateAdminGroup.POST("delete", api.Delete) // 删
		privateAdminGroup.POST("update", api.Update) // 改
		privateAdminGroup.POST("list", api.List)     // 查
	}

}
